<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<html:html locale="true">
<head>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
<title></title>
<link href="console.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 16px}
-->
.even {
	background:	#eee;
}

.odd {

}
</style>
<link href="../console.css" rel="stylesheet" type="text/css">
</head>

<body>
<jsp:include page="/title.jsp" flush="true"/>
	<p class="lnkhead2"><bean:message key='menu.engines'/>&gt;<bean:write name="domain"  filter="true"/></p>
	<form name="form" method="post" action="engine.do">
	<table width="779" >
	  <!--DWLayoutTable-->
	  <tr class="txtnormal2">
	    <td width="169" height="15" align="right" ><!--DWLayoutEmptyCell-->&nbsp;</td>
	    <td colspan="2"><!--DWLayoutEmptyCell-->&nbsp;</td>
	    <td width="169">&nbsp;</td>
	    <td width="267">&nbsp;</td>
	  </tr>
	  <tr class="txtnormal2">
	  <td  height="25" align="right" ><bean:message key='menu.engine'/>Id</td>
	  <td colspan="2" >
  	    <html:text name="config" property="id" maxlength="36"/>  	    <input type="hidden" name="domain" value='<bean:write name="config" property="id"/>'></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
	  </tr>
	<tr class="txtnormal2">
	  <td height="28" align="right" ><bean:message key='menu.taskManager'/></td>
	  <td colspan="2" >
	    <html:select name="config" size="1" property="task" > 
	    <option value=""></option>
<html:options name="tasklist"/> 
                </html:select></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
	</tr>
	<tr class="txtnormal2">
	  <td height="25" align="right" ><bean:message key='menu.orgManager'/></td>
	  <td colspan="2" >
        <html:select name="config" size="1" property="org_manager" > 
        <option value=""></option>
<html:options name="orglist"/> 
                </html:select></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
	</tr>
	<tr class="txtnormal2">
	  <td height="25" align="right"><bean:message key='menu.dataConnection'/></td>
	  <td colspan="2" >
        <html:select name="config" size="1" property="database" > 
        <option value=""></option>
<html:options name="databaselist"/> 
                </html:select></td>
	  <td>&nbsp;</td>
	  <td>&nbsp;</td>
	</tr>
	<tr class="txtnormal2">
	  <td width="87" height="43">&nbsp;</td>
	  <td width="56" valign="middle"><input  type="button" name="Submit" value="<bean:message key='button.update'/>" onclick="javascript:submit1()"></td>
	  <td width="68" valign="middle"><input type="reset" name="Submit2" value="<bean:message key='button.reset'/>"></td>
	  <td valign="middle"><input type="button" name="Submit3" value="<bean:message key='button.delete'/>" onclick="javascript:del()"></td>
	  <td>&nbsp;</td>
	</tr>
	<tr>
	  <td height="149"></td>
	  <td>&nbsp;</td>
	  <td></td>
	  <td></td>
	  <td></td>
	</tr>
	<tr>
	  <td height="5"><img src="../images/spacer.gif" alt="" width="89" height="1"></td>
	  <td></td>
	  <td></td>
	  <td><img src="../images/spacer.gif" alt="" width="69" height="1"></td>
	  <td></td>
	</tr>
    </table>
    	<input type="hidden" name="act"/>
	</form>
	
	<logic:notEmpty name="returnMsg">
	<script>
	<logic:empty name="notRefrashTree">
	parent.frames[0].location.reload();
	</logic:empty>
	alert('<bean:write name="returnMsg"/>');
	</script>
	</logic:notEmpty>
	
	<script  language="JavaScript">
	 
	 function submit1(){
	var frm = document.forms["form"];
		frm.elements["act"].value="update";
	frm.submit();
	 }
	 
	 function del(){
	 if( !confirm("<bean:message key='button.confirmDelete'/>")) return;
	var frm = document.forms["form"];
	frm.elements["act"].value="delete";
	frm.submit();
	 }
	 
	</script>
<%@ include file="/bottom.jsp" %>
</body>
</html:html>



